<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@ include file="/taglibs.jsp" %>

<%@attribute name="title" required="true"%>
<%@attribute name="href" required="false"%>
<%@attribute name="thisPage" required="true"%>
<%@attribute name="beanclass" required="false"%>

<c:set var="active" value=""/>
<c:if test="${thisPage == title}">
    <c:set var="active" value="active"/>
</c:if>

<c:if test="${!empty beanclass}">
    <s:url var="href" beanclass="${beanclass}"/>
</c:if>

<li><s:link class="${active}" href="${href}">${title}</s:link></li>
